<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业2</title>
</head>

<body>
    <pre>
        2、同题1，如果中间的字母不区分大小写，正则表达式怎么写？
        var str="1a2 2ad 5asd3 dd 1c2 1B2";
    </pre>

    <script>
        var str = "1a2 2ad 5asd3 dd 1c2 1B2";
        var a = str.match(/[a-z]/i)
    </script>
</body>

</html>